package com.lord.label.domain;

import java.util.Date;

import org.hibernate.validator.constraints.NotEmpty;

import com.lord.label.base.BaseBean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 
 * @Description: 信息实体
 * @author Lord
 * @date 2017年5月23日 上午9:08:40
 */
public class Result extends BaseBean{

	private static final long serialVersionUID = 5559362747438942511L;

	/** 标题. */
	private String title;

	/** 链接. */
    @NotNull
    @NotBlank(message="{链接地址不能为空}")
    private String url;

    /** 内容. */
    private String centent;

    /** 分类id. */
    private Long categoryId;

    /** 创建时间. */
    private Date gmtCreate;

    /** 修改时间. */
    private Date gmtModified;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public String getCentent() {
        return centent;
    }

    public void setCentent(String centent) {
        this.centent = centent == null ? null : centent.trim();
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

	@Override
	public String toString() {
		return "Result [title=" + title + ", url=" + url + ", centent="
				+ centent + ", categoryId=" + categoryId + ", gmtCreate="
				+ gmtCreate + ", gmtModified=" + gmtModified + "]";
	}
    
}